home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / More Source / C⁄C++ / picture / animate.h < prev    next >
Text File  |  1993-09-23  |  744b  |  35 lines

  1. //    Copyright 1993 Ralph Gonzalez
  2.  
  3. /*
  4. *    FILE:        animate.h
  5. *    AUTHOR:        R. Gonzalez
  6. *    CREATED:    November 8, 1990
  7. *
  8. *    Defines animated nested segment.
  9. */
  10.  
  11. # ifndef    animate_h
  12. # define    animate_h
  13.  
  14. # include    "segment.h"
  15.  
  16. /******************************************************************
  17. *   Nested segment which may be animated.
  18. ******************************************************************/
  19. class    Animated_Segment:public Nested_Segment
  20. {
  21. private:
  22.     Animated_Segment    *animated_segment_ptr[MAX_SEGMENTS];
  23.     int                    num_animated_segments;
  24.     
  25. protected:
  26.     Transformation        *animation[MAX_SEGMENTS];
  27.  
  28. public:    
  29.     Animated_Segment(void);
  30.     virtual void    log_animated_segment(Segment*);
  31.     virtual void    animate(void);
  32.     virtual            ~Animated_Segment(void);
  33. };
  34.  
  35. # endif